/*
 * WaterSupplyInfoPanel.hpp
 *
 *  Created on: 12-01-2011
 *      Author: Przemek
 */

#pragma once

#include "SingleElementInfoPanel.hpp"
#include "world/WaterSupply.hpp"
#include "gui/Label.hpp"

/*
 * Panel which contains info about a water supply.
 */
class WaterSupplyInfoPanel: public SingleElementInfoPanel
{
	private:
		const WaterSupply* selected;

		Label* amountLabel;

	public:
		WaterSupplyInfoPanel(float parentWidth, const WaterSupply* selected);
		std::string getSelectionName() const;

	protected:
		void createComponents(float parentWidth);
		const WaterSupply* getSelected() const;
		void updateFromSelection();
};
